package com.ruoyi.wetest.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 压测记录对象 wetest_stress_record
 * 
 * @author ruoyi
 * @date 2024-06-05
 */
public class WetestStressRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 压测记录id */
    private String testId;

    /** 压测项目id */
    @Excel(name = "压测项目id")
    private String projectId;

    /** 压测的客户端数量 */
    @Excel(name = "压测的客户端数量")
    private Integer stressClient;

    /** 总机器人数 */
    @Excel(name = "总机器人数")
    private Integer totalPcu;

    /** 在线人数 */
    @Excel(name = "在线人数")
    private Integer onlinePcu;

    /** 总tps */
    @Excel(name = "总tps")
    private Integer allTps;

    /** 总事务数 */
    @Excel(name = "总事务数")
    private Integer transNum;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public void setTestId(String testId) 
    {
        this.testId = testId;
    }

    public String getTestId() 
    {
        return testId;
    }
    public void setProjectId(String projectId) 
    {
        this.projectId = projectId;
    }

    public String getProjectId() 
    {
        return projectId;
    }
    public void setStressClient(Integer stressClient) 
    {
        this.stressClient = stressClient;
    }

    public Integer getStressClient() 
    {
        return stressClient;
    }
    public void setTotalPcu(Integer totalPcu) 
    {
        this.totalPcu = totalPcu;
    }

    public Integer getTotalPcu() 
    {
        return totalPcu;
    }
    public void setOnlinePcu(Integer onlinePcu) 
    {
        this.onlinePcu = onlinePcu;
    }

    public Integer getOnlinePcu() 
    {
        return onlinePcu;
    }
    public void setAllTps(Integer allTps) 
    {
        this.allTps = allTps;
    }

    public Integer getAllTps() 
    {
        return allTps;
    }
    public void setTransNum(Integer transNum) 
    {
        this.transNum = transNum;
    }

    public Integer getTransNum() 
    {
        return transNum;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("testId", getTestId())
            .append("projectId", getProjectId())
            .append("stressClient", getStressClient())
            .append("totalPcu", getTotalPcu())
            .append("onlinePcu", getOnlinePcu())
            .append("allTps", getAllTps())
            .append("transNum", getTransNum())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
